package com.heima.listener;

import org.apache.commons.lang3.StringUtils;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class TestListener {
    @KafkaListener(topics = "itcast-topic")
    public void testMessage(String message){
        if(!StringUtils.isEmpty(message)){
            System.out.println(message);
        }


    }

}
